package com.xtaller.sdboot.entity;

import com.xtaller.sdboot.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
* 代码生成 
* @author: Taller  
* @date: 2020-02-07 18:22:32
* @Description: 应用 
*/ 
@Data
public class IamApplication extends BaseEntity {
    // 编码
    @NotNull(message = "应用编码不能为空")
    @Length(max=20, message="应用编码长度应不超过20个字符")
    @TableField(value = "code")
    private String code;

    // 应用名称
    @NotNull(message = "应用名称不能为空")
    @Length(max=20, message="应用名称长度应不超过20个字符")
    @TableField(value = "name") 
    private String name;

    // 密钥 
    @TableField(value = "accessKey")
    private String accessKey;

    // 密匙 
    @TableField(value = "accessSecret")
    private String accessSecret;

    // 首页面板 
    @TableField(value = "panel") 
    private String panel;

    // 状态 1启用 0禁用 
    @TableField(value = "state") 
    private Integer state;

    // 图标 
    @TableField(value = "icon") 
    private String icon;

    // 备注 
    @TableField(value = "remark") 
    private String remark;

} 
